package com.liruo.learn.spring.mvc.enumconverter;

import org.springframework.core.convert.converter.Converter;

/**
 * @Author:liruo
 * @Date:2023-02-19-22:55:00
 * @Desc
 */
public class EnumToIntConverter implements Converter<SourceEnum<Integer>, Integer> {
    @Override
    public Integer convert(SourceEnum<Integer> source) {
        return source.getSource();
    }
}
